

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>State Machine Table Options [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, State Machine Table,State Machine Table Options,State Machine Table Table Format,State Machine Table Cell Size,State Machine Table Cell Color,State Machine Table Cell Highlights,State Machine Table Cell Enumeration">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">State Machine Table Options</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="state_table_diagram.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="state_table_diagram_commands_2.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">You can choose the </span><span class="f_BodyText" style="font-style: italic;"><a href="state_table_diagram.htm">State Machine table</a></span><span class="f_BodyText"> layout and set other options from the </span><span class="f_UIControl">State Machine Diagram: Options</span><span class="f_BodyText"> dialog, which you display by either:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Double-clicking on the State Machine table background or</span></li>
<li><span class="f_Bulletlist1">Right-clicking on the background and selecting the </span><span class="f_MenuKeyField">State Table Options</span><span class="f_Bulletlist1"> context menu option.</span></li>
</ul>
<p class="p_TextIndentedL2"><img src="state%20machine%20diagram%20options.png" width="624" height="516" border="0" alt="State Machine Diagram Options"></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" bgcolor="#e3e6ed" style="width:185px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Option</span></p>
</td>
<td valign="top" width="561" bgcolor="#e3e6ed" style="width:561px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Use to</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Table Format</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the required table format:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">State - Trigger</span><span class="f_Bulletlist1">: rows represent States, each state name in a left edge cell; columns represent Triggers, each trigger name in a column header cell; the intersection of a row and column identifies the Transition (if there is one); the Transition cell displays information about the next State and the condition (guard) of the Transition</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">Trigger - State</span><span class="f_Bulletlist1">: as above, except that rows represent triggers and columns represent states</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">State - Next State</span><span class="f_Bulletlist1">: both rows and columns represent states; intersection of row and column defines the transition (if there is one) from the row state to the column state.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td colspan="2" valign="top" width="746" style="width:746px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Cell Size</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Transition Cell Width</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify the width of the transition cells (that is, the column width).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Transition Cell Height</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify the height of the transition cells (that is, the row height).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Left Edge Cell Width</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify the width of the left edge (row title) cells.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Top Edge Cell Height</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify the height of the top edge (column title) cells.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td colspan="2" valign="top" width="746" style="width:746px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Cell Color</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">State/Trigger Cell</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the color of the row and column title cells.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">State/Trigger Enumeration</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the color of the enumeration (row/column numbering) cells.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You must select at least one of the </span><span class="f_MenuKeyField">Enable State Enumeration</span><span class="f_TiporNoteText"> and </span><span class="f_MenuKeyField">Enable Event Enumeration</span><span class="f_TiporNoteText"> checkboxes to set this color.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Transition Cell</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the color of the transition cells (in the main body of the table).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td colspan="2" valign="top" width="746" style="width:746px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Highlight Options</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Highlight Zones Related to Selected Transition</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Highlight the cells for all elements involved in a selected transition - the initial state, the target state, and the trigger.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Highlight Color</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the color of the highlight.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Use Different Color for Target State</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Highlight the cell for the target element in a transition in a different color to the cell for the source element.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Target Zone Color</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the color of the highlight.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td colspan="2" valign="top" width="746" style="width:746px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Display Options</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Display an Empty State Zone</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Add an empty row (and, on a </span><span class="f_Tabletext" style="font-style: italic;">State - Next State</span><span class="f_Tabletext"> table, an empty column) to the end of the table.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">The title cell contains an ellipsis (</span><span class="f_Tabletext" style="font-weight: bold;">...</span><span class="f_Tabletext">). You can click twice (not double-click) on the ellipsis to edit it and identify a new state. In this case, another empty state zone is automatically added.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Enable State Enumeration</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Add a cell to each state title cell, to number the state. Numbering starts at 0.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Prefix</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">If required, type a prefix for the state number or delete the default </span><span class="f_Tabletext" style="font-weight: bold;">S</span><span class="f_Tabletext"> to have no prefix.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Enable Event Enumeration</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Add a cell to each event or trigger title cell, to number the event. Numbering starts at 0.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Prefix</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">If required, type a prefix for the event number or delete the default </span><span class="f_Tabletext" style="font-weight: bold;">E</span><span class="f_Tabletext"> to have no prefix.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Sample State Table</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display a preview of the table format as you define it.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Advanced</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define diagram options. The </span><span class="f_UIControl">State Machine Diagram <a href="setappearanceoptions.htm">Properties</a></span><span class="f_Tabletext"> dialog displays.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Restore Defaults</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Reapply the State Table diagram default values.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="185" style="width:185px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Apply</span></p>
</td>
<td valign="top" width="561" style="width:561px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Apply changed options to the State Table diagram.</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
